package com.powerwyx.shortlink.admin.common.enums;

import com.powerwyx.shortlink.admin.common.convention.errorcode.IErrorCode;

/**
 * @author 王艺锡
 * @version 1.0
 */
public enum UserErrorCodeEnum implements IErrorCode {
    /**
     *
     */
    USER_TOKEN_FAIL("A000200","用户Token验证失败"),
    /**
     *
     */
    USER_EXIST("B000201","用户记录已存在"),
    /**
     *
     */
    USER_NOT_EXIST("B000200","用户记录不存在");


    private final String code;

    private final String message;

    UserErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
